//
//  LoadXibTool.m
//  TrainTree
//
//  Created by wanghui on 2017/8/24.
//  Copyright © 2017年 YouYeShu. All rights reserved.
//

#import "LoadXibTool.h"

@implementation LoadXibTool
+ (id)loadViewFromXibName:(NSString *)xibName
{
    NSArray *array = [[NSBundle mainBundle] loadNibNamed:xibName owner:self options:nil];
    if (array && array.count) {
        return array[0];
    }else{
        return nil;
    }
}

@end
